package com.itheima.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

//@Aspect
//@Component
@Slf4j
public class LogAspect {

    @Around("@annotation(com.itheima.annotation.LogOperation)")
    public Object around(ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("@annotation");
        Object result=pjp.proceed();
        return result;



    }
}
